package com.lcw.lostandfound.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Goods {
    private Integer id;
    private String category;
    private String title;
    private String detail;
    private String lostPlace;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date lostTime;
    private String contactPerson;
    private String address;
    private String email;
    private String mobile;
    private String qq;
    private String random;
    private Integer thanks=0;
    private Integer promise=0;
    private Integer remuneration;
    private Date createTime;
    private Integer type=0;
    private Integer userId;
    private Integer views=0;

    public Goods(String category, String title, String detail, String lostPlace, Date lostTime, String contactPerson, String address, String email, String mobile, String qq, String random, Integer thanks, Integer promise, Integer remuneration, Date createTime, Integer type, Integer userId) {
        this.category = category;
        this.title = title;
        this.detail = detail;
        this.lostPlace = lostPlace;
        this.lostTime = lostTime;
        this.contactPerson = contactPerson;
        this.address = address;
        this.email = email;
        this.mobile = mobile;
        this.qq = qq;
        this.random = random;
        this.thanks = thanks;
        this.promise = promise;
        this.remuneration = remuneration;
        this.createTime = createTime;
        this.type = type;
        this.userId = userId;
    }
}
